﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace DynaSpace
{
	/// <summary>
	/// Komponenta pro načítání obecného obsahu
	/// </summary>
	internal class ContentComponent : DynaComponentBase
	{
		public static SpriteFont verdana16, verdana10;
		public static Texture2D panel1, player;

		public ContentComponent(DynaGame game)
			: base(game)
		{
		}

		protected override void LoadContent()
		{
			verdana16 = Game.Content.Load<SpriteFont>("Core\\Verdana16");
			verdana10 = Game.Content.Load<SpriteFont>("Core\\Verdana10");
			panel1 = Game.Content.Load<Texture2D>("Core\\Gfx\\panel1");
			player = Game.Content.Load<Texture2D>("Core\\Gfx\\player1");
		}

		protected override void UnloadContent()
		{
			panel1.Dispose();
			player.Dispose();
		}
	}
}
